import { defHttp } from '/@/utils/http/axios';

enum Api {
  TeacherList = '/teacher.teacher/getList',
  TeacherAdd = '/teacher.teacher/add',
  TeacherAddList = '/teacher.teacher/addList',
  TeacherDel = '/teacher.teacher/deleteTeacher',
  pushTaskByTeacher = '/teacher.teacher/pushTaskByTeacher',

  TeacherLogList = '/teacher.teacherLog/getList',
  TeacherLogPass = '/teacher.teacherLog/pass',
  TeacherLogDel = '/teacher.teacherLog/delLogRow',
  initTeacherTaskInfo = '/teacher.teacher/initTeacherTaskInfo',
}

export const TeacherList = (params?: any) => defHttp.get<any>({ url: Api.TeacherList, params });
export const TeacherAdd = (params?: any) => defHttp.post<any[]>({ url: Api.TeacherAdd, params });
export const TeacherAddList = (params?: any) => defHttp.post<any[]>({ url: Api.TeacherAddList, params });
export const TeacherDel = (params?: any) => defHttp.post<any[]>({ url: Api.TeacherDel, params });
export const pushTaskByTeacher = (params?: any) => defHttp.post<any[]>({ url: Api.pushTaskByTeacher, params });
export const initTeacherTaskInfo = (params?: any) => defHttp.post<any[]>({ url: Api.initTeacherTaskInfo, params });

export const TeacherLogList = (params?: any) => defHttp.get<any>({ url: Api.TeacherLogList, params });
export const TeacherLogPass = (params?: any) => defHttp.post<any[]>({ url: Api.TeacherLogPass, params });
export const TeacherLogDel = (params?: any) => defHttp.post<any[]>({ url: Api.TeacherLogDel, params });
//
// export const LocationDel = (params?: any) => defHttp.post<any[]>({ url: Api.LocationDel, params });
